package cn.yll.api.order.response;

import cn.yll.api.BaseResponse;
import com.alibaba.fastjson2.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 商品详情实体
 * @author yangll
 */
@Data
@ApiModel("商品详情实体")
public class GoodResponse extends BaseResponse {

    @ApiModelProperty("记录主键ID")
    private Long id;

    @ApiModelProperty("商品名称")
    private String goodName;

    @ApiModelProperty("单价，分")
    private Integer price;

    @ApiModelProperty("单位名称")
    private String unitName;

    @ApiModelProperty("商品类别名称")
    private String category;

    @ApiModelProperty("商品现有数量")
    private Integer goodNum;

    @ApiModelProperty("创建时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty("最后更新时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime modifyTime;
}
